import Vue from 'vue'
import App from './App.vue'
import router from './router'
//导入数据仓库
import store from './store'
import { Tabbar, TabbarItem,Search,Swipe, SwipeItem,Form,Field, Button,NavBar,Icon,Sidebar,SidebarItem,AddressList,AddressEdit } from 'vant';

Vue.config.productionTip = false
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(AddressList);
Vue.use(AddressEdit);


new Vue({
  router,
  store,//挂载数据仓库到根实例上，这样在每个组件中都可以通过组件实例this获取数据仓库：this.$store
  render: h => h(App)
}).$mount('#app')
